package com.ih.service.impl;

import com.github.pagehelper.PageInfo;
import com.ih.mapper.OrderMapper;
import com.ih.pojo.Order;
import com.ih.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName OrderServiceImpl
 * @Description
 * @Author xiaozhang
 * @date 2023-05-06
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public PageInfo<Order> listOrder(Integer pageNum,Integer pageSize) {
        List<Order> orders = orderMapper.listOrder();
        return new PageInfo<Order>(orders);
    }
}
